package com.moji.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 流程配置表
 * </p>
 *
 * @author ccl
 * @since 2024-08-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="MjFlow对象", description="流程配置表")
public class MjFlow extends Model<MjFlow> {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "流程编码")
    private String flowCode;

    @ApiModelProperty(value = "流程名称")
    private String flowName;

    @ApiModelProperty(value = "流程类型: 1-订单审批 2-价格审批")
    private String flowType;

    @ApiModelProperty(value = "审批产品")
    private String productCode;

    @ApiModelProperty(value = "审批产品名称")
    private String productName;

    @ApiModelProperty(value = "产品类型  1 免费版  2 包年版  3 个性定制版")
    private String productType;

    @ApiModelProperty(value = "订单编码")
    private String orderCode;

    @ApiModelProperty(value = "订单名称")
    private String ordertName;

    @ApiModelProperty(value = "审核人编码")
    private String auditCode;

    @ApiModelProperty(value = "审核人名称")
    private String auditName;

    @ApiModelProperty(value = "发起人编码")
    private String submitCode;

    @ApiModelProperty(value = "发起人名称")
    private String submitName;

    @ApiModelProperty(value = "审核状态10 - 未提交 11 - 已提交")
    private Integer submitStatus;

    @ApiModelProperty(value = "审核状态20 - 未审核 21 - 审核中 22-已审核 23-已驳回")
    private Integer auditStatus;

    @ApiModelProperty(value = "发起时间")
    private Date submitTime;

    @ApiModelProperty(value = "审核时间1")
    private Date auditTime1;

    @ApiModelProperty(value = "审核时间2")
    private Date auditTime2;

    @ApiModelProperty(value = "驳回原因")
    private String reason;

    @ApiModelProperty(value = "原金额")
    private BigDecimal orderAmount;

    @ApiModelProperty(value = "当前金额")
    private BigDecimal newOrderAmount;

    @ApiModelProperty(value = "修改后金额")
    private BigDecimal editOrderAmount;

    @ApiModelProperty(value = "浮动")
    private BigDecimal floatRatio;

    @ApiModelProperty(value = "摘要备注")
    private String remark;

    @ApiModelProperty(value = "操作人id")
    private String updateId;

    @ApiModelProperty(value = "创建人id")
    private String createId;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "备用字段1")
    private Integer spareInt1;

    @ApiModelProperty(value = "备用字段2")
    private Integer spareInt2;

    @ApiModelProperty(value = "备用字段1")
    private String spareString1;

    @ApiModelProperty(value = "备用字段2")
    private String spareString2;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
